﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestConsoleApplication.ServiceReference1;

namespace TestConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            PersonJSONServiceClient client = new PersonJSONServiceClient();
            int i = Convert.ToInt16(Console.ReadLine());
            Console.WriteLine(client.getPeople(i).FirstName);
            Console.WriteLine(client.getPeople(i).LastName);
            Console.WriteLine(client.getPeople(i).Age);
            Console.WriteLine();
            //for (i = 0; i < client.getAllPeople().Length; i++) {
                //Console.WriteLine(client.getAllPeople().ToString);
            //Console.WriteLine();
            //}
            
            Console.ReadLine();
            client.Close();
        }
    }
}
